package com.cloudweb.oa.service;

import java.sql.SQLException;

public interface LeaveBalanceService {

    void distributeLeaveBalanceByRuleId(long ruleId, boolean isSchedule);


    boolean distributeToUser(String userName, String leaveType, double days, Integer flowId, long ruleId, Integer expiryDate, String expiryType);

    boolean distributeToUser(String userName, String leaveType, double days, Integer flowId);

    double getDays(String userName, String leaveType);

    boolean writeOffDays(String userName, String leaveType, double days) throws SQLException;

    boolean addDays(String userName, String leaveType, double days);

    void checkLeaveDistributeExpired();

    void distributeLeaveBalanceBySchudule();
}
